
package com.piripo.dao;
		

import com.piripo.entities.*;
import com.piripo.dao.hibernate.*;

import com.jrapid.dao.DAO;
import com.jrapid.dao.hibernate.HibernateDAO;

public class MainDAOLocator extends com.jrapid.dao.DAOLocator  {

	private static MainDAOLocator me = new MainDAOLocator();
	
	private MainDAOLocator() {
		super();
		setAll();
	}
	
	public void setAll() {
		
		setDAO(User.class, new HibernateUserDAO());
						
			
		
		setDAO(Role.class, new HibernateRoleDAO());
						
			
		
		setDAO(Login.class, new HibernateLoginDAO());
						
			
		
		setDAO(ChangePassword.class, new HibernateChangePasswordDAO());
						
			
		
		setDAO(Location.class, new HibernateLocationDAO());
						
			
		
		setDAO(Review.class, new HibernateReviewDAO());
						
			
		
		setDAO(Experience.class, new HibernateExperienceDAO());
						
			
		
		setDAO(BlogPost.class, new HibernateBlogPostDAO());
						
			
							
	}
	
	public static MainDAOLocator get() {
		return me;
	}
	
	
	public DAO<User> getUserDAO() {
		return me.getDAO(User.class);
	}			
	
	public DAO<Role> getRoleDAO() {
		return me.getDAO(Role.class);
	}			
	
	public DAO<Login> getLoginDAO() {
		return me.getDAO(Login.class);
	}			
	
	public DAO<ChangePassword> getChangePasswordDAO() {
		return me.getDAO(ChangePassword.class);
	}			
	
	public DAO<Location> getLocationDAO() {
		return me.getDAO(Location.class);
	}			
	
	public DAO<Review> getReviewDAO() {
		return me.getDAO(Review.class);
	}			
	
	public DAO<Experience> getExperienceDAO() {
		return me.getDAO(Experience.class);
	}			
	
	public DAO<BlogPost> getBlogPostDAO() {
		return me.getDAO(BlogPost.class);
	}			
	
}
	